<!DOCTYPE html>{% load i18n globaltags static %}
<html lang="{{ LANGUAGE_CODE }}">
<head>
    <title>{% block title %}{% global_var 'COMPANY_NAME' %} - {% trans 'Admin side' %}{% endblock %}</title>
    <meta charset="UTF-8">
    <!--[if lt IE 9]><meta http-equiv="refresh" content="0;URL={% static 'bad_ie.html' %}" /><![endif]-->
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <link rel="stylesheet" href="{% static 'css/bootstrap.min.css' %}?cs=feeb82e57e3f9244e91fdb3989858b6e">
    <link rel="stylesheet" href="{% static 'css/bootstrap-theme.min.css' %}?cs=e65ecf24a5e11f9dad7b2ee948cbc700">
    <link rel="stylesheet" href="{% static 'css/custom.css' %}?cs=c1a99f1069b9b960b199759c62817214">
    <script src="{% static 'js/all.min.js' %}?cs=079ae807778072e76caa96337a46c00a"></script>
    {% block additional_link %}{% endblock %}
    <script src="{% static 'js/my.js' %}?cs=10380bdc7bde34f1b79799f7b9d19fd6"></script>
    <link rel="shortcut icon" href="{% static 'img/favicon_m.ico' %}">
    <meta name="author" content="Dmitry Novikov">
    <meta name="contact" content="nerosketch@gmail.com">
</head>
<body>

<!-- Modal -->
<div class="modal fade" id="modFrm" tabindex="-1" role="dialog" aria-hidden="true">
    <div class="modal-dialog">
        <div class="modal-content" id="modContent"></div>
    </div>
</div>

<!-- Fixed navbar -->
<nav class="navbar navbar-inverse navbar-fixed-top" role="navigation">
    <div class="container">
        <div class="navbar-header">
            <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
                <span class="sr-only">Toggle navigation</span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
            </button>
            <a class="navbar-brand hidden-xs" href="{% url 'acc_app:other_profile' request.user.id %}">{% global_var 'COMPANY_NAME' %}</a>
        </div>
        <div class="navbar-collapse collapse">
            <ul class="nav navbar-nav">

                {% url 'acc_app:other_profile' request.user.id as home_url %}
                <li{% if home_url == request.path %} class="active"{% endif %}><a href="{{ home_url }}">{% trans 'Main page' %}</a></li>

                {% if request.user.is_superuser %}
                    {% url 'mapapp:home' as map_url %}
                    <li{% if map_url == request.path %} class="active"{% endif %}><a href="{{ map_url }}" target="_blank">{% trans 'Map page' %}</a></li>
                {% endif %}

                <li class="dropdown">
                    <a href="#" class="dropdown-toggle" data-toggle="dropdown">{% trans 'Other' %} <b class="caret"></b></a>
                    <ul class="dropdown-menu">
                        <li><a href="{% url 'acc_app:setup_info' %}"><span class="glyphicon glyphicon-wrench"></span> {% trans 'Settings' %}</a></li>

                        {% if perms.finapp.view_payalltimegateway %}
                            <li>
                                <a href="{% url 'finapp:alltime_gateways_list' %}">
                                    <span class="glyphicon glyphicon-credit-card"></span> {% trans 'Finance' %}
                                </a>
                            </li>
                        {% endif %}

                        <li><a href="{% url 'acc_app:logout' %}"><span class="glyphicon glyphicon-log-out"></span> {% trans 'Exit' %}</a></li>
                    </ul>
                </li>
            </ul>
            <form class="navbar-form navbar-right" action="{% url 'searchapp:home' %}" method="get">
                <div class="input-group stylish-input-group">
                    <input type="text" class="form-control" placeholder="Search..." name="s">
                  <span class="input-group-addon">
                    <button type="submit"><span class="glyphicon glyphicon-search"></span></button>
                  </span>
                </div>
            </form>
        </div>
        <!--/.nav-collapse -->
    </div>
</nav>
<!-- END Fixed navbar -->


<div class="container-fluid">
    <div class="row row-offcanvas row-offcanvas-left">

        {% block base_content %}{% endblock %}

    </div>
</div>

</body>
</html>
